//
//  HttpRequester.h
//  leo
//
//  Created by 常艳 on 15/8/25.
//  Copyright (c) 2015年 mdx. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Logger.h"
#import "MKNetworkKit.h"
#import "ReRequester.h"
#import "common.h"
#import "User.h"
#import "Tooler.h"
#import "DataManager.h"
#import "Contact.h"
#import "LeoMsg.h"
@class AppDelegate;
#define http_tag  "HttpRequester------------------------"

@interface HttpRequester : NSObject
@property(nonatomic,strong) DataManager *theManager;
@property(nonatomic,strong) MKNetworkEngine *engine;
@property (nonatomic, strong) AppDelegate *mydelegate;
-(NSDictionary *)getUrl:(NSString *)url;
-(NSDictionary *)postUrl:(NSString *)url postdata:(NSString *)parameters;
-(void)asyncGet:(NSString *)url parameters:(NSString *)parameters completion:(void (^)(MKNetworkOperation *operation))callback;
-(void)asyncPost:(NSString *)url parameters:(NSDictionary *)parameters completion:(void (^)(NSDictionary *resdict))callback;

-(void)postFile:(NSString *)urlStr fileName:(NSString *)fileName filePath:(NSString *)filePath param:(NSDictionary *)param completion:(void (^)(NSDictionary *resdict))callback;
-(BOOL)downLoadFile:(NSString *)urlStr  filePath:(NSString *)filePath;
@end
